From bdca978560a8758a1626760c3ec9f160b1f7f849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Fri, 8 Nov 2019 21:05:39 +0100 Subject: turns out da so bli \t in ne " "... telo ostane intact ker tabi so lahk not, ne bom substr, not really needed, faking telo je MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit iz zadeve pa zdej briĊĦem \n \r in " ", od tule tudi \t --- main.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.php b/main.php index ad810c3..b68d092 100644 --- a/main.php +++ b/main.php @@ -54,7 +54,7 @@ Errors: class gimsisextClient { private $username; private $password; - public $version = array(0, 7, 4); + public $version = array(0, 7, 5); private $programname = "gimsisextclient"; private $programdomain = 'gimsisextclient.gimb.tk'; private $cookiedir; // set at runtime, ker je get_curerent_user, v login() @@ -521,7 +521,7 @@ Errors: foreach($dn->getElementsByTagName('div') as $sn) { switch($sn->getAttribute("class")) { case "msgSubjectS": - $msg['zadeva'] = substr(str_replace("\n", null, str_replace("\r", null, str_replace(" ", null, DOMinnerHTML($sn)))), 1, -1); + $msg['zadeva'] = str_replace("\n", null, str_replace("\r", null, str_replace(" ", null, str_replace("\t", null DOMinnerHTML($sn))))); break; } } @@ -533,7 +533,7 @@ Errors: $msg['ura'] = explode(" ", get_string_between(DOMinnerHTML($divn->getElementsByTagName('span')[0]), "(", ")"))[1]; $msg['prejemnik'] = DOMinnerHTML($divn->getElementsByTagName('span')[1]); } elseif ($divn->getAttribute("class") == "gCursorAuto") { - $msg['telo'] = substr(explode("
", DOMinnerHTML($divn))[0], 1, -1); + $msg['telo'] = explode("
", DOMinnerHTML($divn))[0]; } } } -- cgit v1.2.3